package com.www.bigevent.controller;

import com.www.bigevent.pojo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/article")
public class ArticleController {
    @PostMapping("/list")
  public Result<String> list(/*@RequestHeader(name = "Authorization") String token, HttpServletResponse response*/){
//      //验证Token
//        try {
//            Map<String, Object> claims = JwtUtils.parseToken(token);
//
//        } catch (Exception e) {
//            response.setStatus(401);
//          return Result.error("未登录");
//        }
        return Result.success("文章数据。。。");
    }
}
